package com.kongmou.hsearch.section1;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/hs")
public class HSController {

    @Resource
    InitFullTextIndex initFullTextIndex;


    @RequestMapping("/tinnit")
    public void innit() throws Exception {
        initFullTextIndex.initFullTextIndex();

    }

    @RequestMapping("/tquery")
    public void query() {
        initFullTextIndex.queryIndext();
    }


}
